package com.yangzcp.userpojo;

import com.yangzcp.pojo.SuperData;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;
import java.util.Date;

@ApiModel("用户")
@Entity
@Table(name = "users", uniqueConstraints = {@UniqueConstraint(columnNames = {"tel"})})
public class Users extends SuperData {
    @ApiModelProperty("用户类型")
    private Integer guan_flag;

    public void setGuan_flag(Integer guan_flag) {
        this.guan_flag = guan_flag;
    }

    public Integer getGuan_flag() {
        return guan_flag;
    }

    @ApiModelProperty("电话号码")
    private String tel;

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getTel() {
        return tel;
    }

    @ApiModelProperty("警告次数")
    private Integer jinggao;

    public void setJinggao(Integer jinggao) {
        this.jinggao = jinggao;
    }

    public Integer getJinggao() {
        return jinggao;
    }

    @ApiModelProperty("拉黑")
    private Integer lahei;

    public void setLahei(Integer lahei) {
        this.lahei = lahei;
    }

    public Integer getLahei() {
        return lahei;
    }

    @ApiModelProperty("头像")
    private String photo;

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public String getPhoto() {
        return photo;
    }

    @ApiModelProperty("登录密码")
    private String password;

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPassword() {
        return password;
    }

    @ApiModelProperty("警告次数上限")
    private Integer jinggao_top;

    public void setJinggao_top(Integer jinggao_top) {
        this.jinggao_top = jinggao_top;
    }

    public Integer getJinggao_top() {
        return jinggao_top;
    }

    @ApiModelProperty("登录密钥")
    private String sign;

    public void setSign(String sign) {
        this.sign = sign;
    }

    public String getSign() {
        return sign;
    }

    @ApiModelProperty("收藏数")
    private Integer shouchang_count;

    public void setShouchang_count(Integer shouchang_count) {
        this.shouchang_count = shouchang_count;
    }

    public Integer getShouchang_count() {
        return shouchang_count;
    }

    @ApiModelProperty("姓名")
    private String name;

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    @ApiModelProperty("警告备注")
    private String jinggao_mark;

    public void setJinggao_mark(String jinggao_mark) {
        this.jinggao_mark = jinggao_mark;
    }

    public String getJinggao_mark() {
        return jinggao_mark;
    }

    @ApiModelProperty("创建时间")
    private Long create_time = new Date().getTime();

    public void setCreate_time(Long create_time) {
        this.create_time = create_time;
    }

    public Long getCreate_time() {
        return create_time;
    }

    @ApiModelProperty("个性签名")
    private String qianming;

    public void setQianming(String qianming) {
        this.qianming = qianming;
    }

    public String getQianming() {
        return qianming;
    }
}